Trait std::io::UpdateIoError[src]
trait UpdateIoError<T> {
fn update_err(self, desc: &'static str, detail: |&IoError| -> String) -> Self;
fn update_detail(self, detail: |&IoError| -> String) -> Self;
fn update_desc(self, desc: &'static str) -> Self;
}A trait that lets you add a detail to an IoError easily
Required Methods
fn update_err(self, desc: &'static str, detail: |&IoError| -> String) -> Self
Returns an IoError with updated description and detail
fn update_detail(self, detail: |&IoError| -> String) -> Self
Returns an IoError with updated detail
fn update_desc(self, desc: &'static str) -> Self
Returns an IoError with update description
Implementors
impl<T> UpdateIoError<T> for IoResult<T>