pub struct Block {
block_command: BlockCommand,
}
Fields§
§block_command: BlockCommand
Implementations§
source§impl Block
impl Block
pub fn new(block_command: BlockCommand) -> Self
pub fn get<P: Into<String>, S: Into<String>>( self, block_id: P, host: S ) -> String
pub fn get_expect_fail<P: Into<String>, S: Into<String>>( self, block_id: P, host: S, expected_msg: &str )
pub fn next<P: Into<String>, S: Into<String>>( self, block_id: P, limit: u32, host: S ) -> Vec<Hash>
pub fn next_expect_fail<P: Into<String>, S: Into<String>>( self, block_id: P, limit: u32, host: S, expected_msg: &str )
Auto Trait Implementations§
impl !RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl !UnwindSafe for Block
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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