Struct maelstrom_util::io::MaybeFastWriter
source · pub struct MaybeFastWriter(/* private fields */);
Implementations§
source§impl MaybeFastWriter
impl MaybeFastWriter
pub fn new(log: Logger) -> Self
pub fn buffer_size(&self) -> usize
pub fn write(&mut self, bytes: &[u8]) -> Result<()>
pub fn write_fd( &mut self, fd: Fd, offset: Option<u64>, length: usize, ) -> Result<usize>
pub fn copy_to_fd(&mut self, fd: Fd, offset: Option<u64>) -> Result<()>
Auto Trait Implementations§
impl Freeze for MaybeFastWriter
impl RefUnwindSafe for MaybeFastWriter
impl Send for MaybeFastWriter
impl Sync for MaybeFastWriter
impl Unpin for MaybeFastWriter
impl UnwindSafe for MaybeFastWriter
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