pub struct BlockWriteStream<S> { /* private fields */ }
Implementations§
Source§impl<S: Read + Write> BlockWriteStream<S>
impl<S: Read + Write> BlockWriteStream<S>
pub fn close<D: Read + Write>( &mut self, ipc: &mut HRpc<D>, ) -> Result<ExtendedBlockProto, HDFSError>
pub fn create( client_name: String, stream: S, block: LocatedBlockProto, bytes_per_checksum: u32, checksum_ty: ChecksumTypeProto, offset: u64, append: bool, ) -> Result<Self, HDFSError>
pub fn write(&mut self, data: &[u8], last: bool) -> Result<(), HDFSError>
Auto Trait Implementations§
impl<S> Freeze for BlockWriteStream<S>where
S: Freeze,
impl<S> RefUnwindSafe for BlockWriteStream<S>where
S: RefUnwindSafe,
impl<S> Send for BlockWriteStream<S>where
S: Send,
impl<S> Sync for BlockWriteStream<S>where
S: Sync,
impl<S> Unpin for BlockWriteStream<S>where
S: Unpin,
impl<S> UnwindSafe for BlockWriteStream<S>where
S: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request