pub struct SinkWriteError { /* private fields */ }Expand description
Details about a failed async write into a collector sink.
Implementations§
Source§impl SinkWriteError
impl SinkWriteError
Sourcepub fn stream_name(&self) -> &'static str
pub fn stream_name(&self) -> &'static str
The name of the stream this collector operates on.
Sourcepub fn operation(&self) -> SinkWriteOperation
pub fn operation(&self) -> SinkWriteOperation
The write operation that failed.
Sourcepub fn attempted_len(&self) -> usize
pub fn attempted_len(&self) -> usize
Number of bytes passed to the failed write_all call.
Trait Implementations§
Source§impl Debug for SinkWriteError
impl Debug for SinkWriteError
Source§impl Display for SinkWriteError
impl Display for SinkWriteError
Source§impl Error for SinkWriteError
impl Error for SinkWriteError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SinkWriteError
impl !RefUnwindSafe for SinkWriteError
impl Send for SinkWriteError
impl Sync for SinkWriteError
impl Unpin for SinkWriteError
impl UnsafeUnpin for SinkWriteError
impl !UnwindSafe for SinkWriteError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more