[][src]Struct utils::testing::ServiceListener

pub struct ServiceListener { /* fields omitted */ }

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][+]

impl<T> From<T> for T[src][+]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[+]

impl<T> Same<T> for T

type Output = T

Should always be Self