pub struct BlockIp { /* private fields */ }Implementations§
Source§impl BlockIp
impl BlockIp
pub fn new(ip: InnerIpAddr, info: IpBlockInfo) -> Self
pub fn ip(&self) -> &InnerIpAddr
pub fn info(&self) -> &IpBlockInfo
pub fn try_from_bytes(value: BytesWrap) -> Result<Self>
Trait Implementations§
Source§impl BlockTrait for BlockIp
impl BlockTrait for BlockIp
Source§impl From<BlockIp> for GetRespBlock
impl From<BlockIp> for GetRespBlock
Source§impl From<BlockIp> for IdentRespBlock
impl From<BlockIp> for IdentRespBlock
impl Eq for BlockIp
impl StructuralPartialEq for BlockIp
Auto Trait Implementations§
impl Freeze for BlockIp
impl RefUnwindSafe for BlockIp
impl Send for BlockIp
impl Sync for BlockIp
impl Unpin for BlockIp
impl UnwindSafe for BlockIp
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