[−][src]Struct utils::testing::ServiceListener
Methods
impl ServiceListener
[src][−]
pub fn spawn(_ip: &str, port: u16) -> ServiceListener
[src][−]
Spawns a new dummy service listener This listener will just listen for posts and save off the request bodies for examination in tests
pub fn get_request(&self) -> Option<String>
[src][−]
Pops a request body from the collected queue These are popped off in FIFO fashion
Auto Trait Implementations
impl Send for ServiceListener
impl Unpin for ServiceListener
impl Sync for ServiceListener
impl UnwindSafe for ServiceListener
impl RefUnwindSafe for ServiceListener
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> From<T> for T
[src][+]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self