pub struct SendBuilder<R: AsFd, H> { /* private fields */ }Expand description
Builds a send stream.
Implementations§
Source§impl<H> SendBuilder<OwnedFd, H>
impl<H> SendBuilder<OwnedFd, H>
Source§impl<R, H> SendBuilder<R, H>
impl<R, H> SendBuilder<R, H>
Sourcepub fn version(self, version: u32) -> Self
pub fn version(self, version: u32) -> Self
Set the send stream version.
By default the highest supported version if used.
Sourcepub fn buffered(self, buffered: bool) -> Self
pub fn buffered(self, buffered: bool) -> Self
Wether or not to use a buffered receive.
This options has no effect if no handler is provided.
See, super::receive_stream() for more information.
Sourcepub fn no_file_data(self, no_file_data: bool) -> Self
pub fn no_file_data(self, no_file_data: bool) -> Self
File data wont be included in the stream.
Write commands will be replaced with Update Extent commands.
Sourcepub fn omit_end_cmd(self, omit_end_cmd: bool) -> Self
pub fn omit_end_cmd(self, omit_end_cmd: bool) -> Self
Omit the command at the end of the stream.
Sourcepub fn omit_stream_header(self, omit_stream_header: bool) -> Self
pub fn omit_stream_header(self, omit_stream_header: bool) -> Self
Omit the stream header.
Sourcepub fn compressed(self, compressed: bool) -> Self
pub fn compressed(self, compressed: bool) -> Self
Send compressed data.
Sourcepub fn spawn_send(self) -> Result<SendHandle>
pub fn spawn_send(self) -> Result<SendHandle>
Consumes the builder and spawns a non blocking send.
Sourcepub fn blocking_send(self) -> Result<()>
pub fn blocking_send(self) -> Result<()>
Consumes the builder and performs a blocking send.
Trait Implementations§
Auto Trait Implementations§
impl<R, H> Freeze for SendBuilder<R, H>
impl<R, H> RefUnwindSafe for SendBuilder<R, H>
impl<R, H> Send for SendBuilder<R, H>
impl<R, H> Sync for SendBuilder<R, H>
impl<R, H> Unpin for SendBuilder<R, H>
impl<R, H> UnsafeUnpin for SendBuilder<R, H>
impl<R, H> UnwindSafe for SendBuilder<R, H>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more