final static functions
This commit is contained in:
parent
34f6c1f2f1
commit
579d2b1f02
@ -431,6 +431,18 @@ fn push_proxy_implementation(
|
||||
|
||||
let implement = quote_item!(cx,
|
||||
impl<S> ServiceProxy<S> where S: ::ipc::IpcSocket {
|
||||
pub fn new(socket: S) -> ServiceProxy<S> {
|
||||
ServiceProxy {
|
||||
socket: ::std::cell::RefCell::new(socket),
|
||||
phantom: ::std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn socket(&self) -> &::std::cell::RefCell<S> {
|
||||
&self.socket
|
||||
}
|
||||
|
||||
$items
|
||||
}).unwrap();
|
||||
|
||||
|
@ -36,21 +36,7 @@ impl Service {
|
||||
}
|
||||
}
|
||||
|
||||
impl<S: ::ipc::IpcSocket> ServiceProxy<S> {
|
||||
pub fn new(socket: S) -> ServiceProxy<S> {
|
||||
ServiceProxy {
|
||||
socket: ::std::cell::RefCell::new(socket),
|
||||
phantom: ::std::marker::PhantomData,
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn socket(&self) -> &::std::cell::RefCell<S> {
|
||||
&self.socket
|
||||
}
|
||||
}
|
||||
|
||||
impl Service {
|
||||
impl Service {
|
||||
pub fn new() -> Service {
|
||||
Service {
|
||||
commits: RwLock::new(0usize),
|
||||
|
Loading…
Reference in New Issue
Block a user