Struct monitor::Monitor [] [src]

pub struct Monitor<T: Sized> {
    // some fields omitted
}

Methods

impl<T: Sized> Monitor<T>
[src]

fn new(val: T) -> Monitor<T>

fn with_lock<U>(&self, f: &Fn(MonitorGuard<T>) -> U) -> U