[src]

Trait std::rt::local::Local

pub trait Local<Borrowed> {
    fn put(value: ~Self);
    fn take() -> ~Self;
    fn try_take() -> Option<~Self>;
    fn exists(unused_value: Option<Self>) -> bool;
    fn borrow(unused_value: Option<Self>) -> Borrowed;
    unsafe fn unsafe_take() -> ~Self;
    unsafe fn unsafe_borrow() -> *mut Self;
    unsafe fn try_unsafe_borrow() -> Option<*mut Self>;
}

Encapsulates some task-local data.

Required Methods

fn put(value: ~Self)

fn take() -> ~Self

fn try_take() -> Option<~Self>

fn exists(unused_value: Option<Self>) -> bool

fn borrow(unused_value: Option<Self>) -> Borrowed

unsafe fn unsafe_take() -> ~Self

unsafe fn unsafe_borrow() -> *mut Self

unsafe fn try_unsafe_borrow() -> Option<*mut Self>

Implementors