pub struct FakeTransport {
pub writes: AtomicU64,
/* private fields */
}Fields§
§writes: AtomicU64Implementations§
Source§impl FakeTransport
impl FakeTransport
pub fn new(name: &'static str) -> Arc<Self>
pub fn set_available(&self, v: bool)
pub fn plant_receipt(&self, receipt: Receipt)
pub fn write_count(&self) -> u64
Trait Implementations§
Source§impl Transport for FakeTransport
impl Transport for FakeTransport
fn name(&self) -> &'static str
Source§fn available(&self) -> bool
fn available(&self) -> bool
Cheap local probe — must NOT be treated as delivery proof by itself.
fn read(&self) -> Option<DataMap>
fn write(&self, map: &DataMap) -> Result<()>
fn read_receipt(&self) -> Option<Receipt>
fn write_receipt(&self, receipt: &Receipt) -> Result<()>
Auto Trait Implementations§
impl !Freeze for FakeTransport
impl RefUnwindSafe for FakeTransport
impl Send for FakeTransport
impl Sync for FakeTransport
impl Unpin for FakeTransport
impl UnsafeUnpin for FakeTransport
impl UnwindSafe for FakeTransport
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