#[repr(C)]pub enum SizeResult {
Ok(usize),
Error(Error),
}
Expand description
Describes the result of a function which may return a numeric count of
bytes read/written if everything was Ok, or return an Error
if something
went wrong.
This is not a standard Rust Result
because they are not #[repr(C)]
.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SizeResult
impl RefUnwindSafe for SizeResult
impl Send for SizeResult
impl Sync for SizeResult
impl Unpin for SizeResult
impl UnwindSafe for SizeResult
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